-- GENERATED SPELL FOR [Gordok Mage-Lord] --


function spell0_11444(pUnit, Event) --@Bloodlust,n/a--
pUnit:FullCastSpellOnTarget(16170,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_11444', 30325, 1)
end

function spell1_11444(pUnit, Event) --@Fire Blast,n/a--
pUnit:FullCastSpellOnTarget(14145,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_11444', 638, 1)
end

function spell2_11444(pUnit, Event) --@Flamestrike,n/a--
pUnit:FullCastSpellOnTarget(16102,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_11444', 11000, 1)
end

function spell3_11444(pUnit, Event) --@Frostbolt,n/a--
pUnit:FullCastSpellOnTarget(15530,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_11444', 7000, 1)
end

function spell4_11444(pUnit, Event) --@Polymorph,n/a--
pUnit:FullCastSpellOnTarget(13323,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_11444', 9500, 1)
end

function Sorts_11444(pUnit, Event)
local choix_sorts_11444 = math.random(0, 4)
if choix_sorts_11444 == 0 then
pUnit:RegisterEvent('spell0_11444', 1, 1)
end
if choix_sorts_11444 == 1 then
pUnit:RegisterEvent('spell1_11444', 1, 1)
end
if choix_sorts_11444 == 2 then
pUnit:RegisterEvent('spell2_11444', 1, 1)
end
if choix_sorts_11444 == 3 then
pUnit:RegisterEvent('spell3_11444', 1, 1)
end
if choix_sorts_11444 == 4 then
pUnit:RegisterEvent('spell4_11444', 1, 1)
end
end

function mob11444_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_11444', math.random(1500, 3000), 1)
end

function mob11444_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob11444_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob11444_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(11444, 1, 'mob11444_Action')
RegisterUnitEvent(11444, 2, 'mob11444_Leave')
RegisterUnitEvent(11444, 3, 'mob11444_Kill')
RegisterUnitEvent(11444, 4, 'mob11444_Die')
